<template>
 <el-form
      ref="formRef"
      :model="formData"
      :rules="formRules"
      label-width="150px"
      v-loading="formLoading"
    >
     <el-form-item label="关于我们" prop="about">
        <Editor v-model="formData.about" height="150px" />
      </el-form-item>
</el-form>
</template>
<script setup lang="ts">
import { getIntDictOptions, getBoolDictOptions, DICT_TYPE } from '@/utils/dict'

/** 基础设置 表单 */
defineOptions({ name: 'AboutForm' })
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
const props = defineProps({
  formData: {
    type: Object,
    default: () => {}
  }
})
const formData=props.formData
watch(() => props.formData, (val) => {
  formData.value = val
})
const formRules = reactive({
})
/** 提交表单 */
const formRef = ref()
const validateForm=async()=>{
  return formRef.value.validate()
}
defineExpose({ validateForm })
</script>